This element creates a parameter which value is computed thanks to a mathematical formula.
See Param element attribute. The FORMULA_PARAM attribute does not have the persistent attribute since its value is computed with a formula.
Name | Value Type | Default Value | Description | Comment | V. |
---|---|---|---|---|---|
formula |
Empty. |
Mathematical formula to compute the parameter. |
The formula can reference any parameter, curve or surface available in the skin. |
1.6 |
|
The code below creates a parameter ("f_param")which is computed from the value of another ("variable"):
<PARAM id="variable" min="0" max="10" default="0"/> <FORMULA_PARAM id="f_param" formula="cos(variable)"/>